﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace Krile.Forms.Dialogs.Show
{
    public partial class ExceptionTracking : Form
    {
        public ExceptionTracking(Exception e)
        {
            InitializeComponent();
            ErrorIcon.Image = SystemIcons.Error.ToBitmap();
            DetailDesctiption.Text = e.ToString();
        }

        private void DoCopy_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
        {
            Clipboard.SetText(DetailDesctiption.Text);
            MessageBox.Show("Copyed.", "Copy error detail", MessageBoxButtons.OK, MessageBoxIcon.Information);
        }

        private void Report_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
        {
            System.Diagnostics.Process.Start("mailto:webmaster@starwing.net");
        }
    }
}
